<!DOCTYPE html>

<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<title>Documentation Index</title>

	<!--[if lt IE 9]>
	<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">

	<link type="text/css" rel="stylesheet" href="styles/site.cerulean.css">

</head>

<body>

<div class="navbar navbar-default navbar-fixed-top ">
<div class="container">
	<div class="navbar-header">
		<a class="navbar-brand" href="index.html">Documentation</a>
		<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
        </button>
	</div>
	<div class="navbar-collapse collapse" id="topNavigation">
		<ul class="nav navbar-nav">
			
			<li class="dropdown">
				<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
				<ul class="dropdown-menu ">
					<li><a href="global.html#$$">$$</a></li><li><a href="global.html#__API__">__API__</a></li><li><a href="global.html#add">add</a></li><li><a href="global.html#Article">Article</a></li><li><a href="global.html#Cost">Cost</a></li><li><a href="global.html#ctrl_activity_cultivation">ctrl_activity_cultivation</a></li><li><a href="global.html#ctrl_activity_farmer">ctrl_activity_farmer</a></li><li><a href="global.html#ctrl_activity_pay">ctrl_activity_pay</a></li><li><a href="global.html#ctrl_activity_play">ctrl_activity_play</a></li><li><a href="global.html#ctrl_bootstrap">ctrl_bootstrap</a></li><li><a href="global.html#ctrl_person">ctrl_person</a></li><li><a href="global.html#ctrl_person_animal">ctrl_person_animal</a></li><li><a href="global.html#ctrl_person_farmer">ctrl_person_farmer</a></li><li><a href="global.html#ctrl_person_indent_fin">ctrl_person_indent_fin</a></li><li><a href="global.html#ctrl_science_map">ctrl_science_map</a></li><li><a href="global.html#ctrl_science_recomm">ctrl_science_recomm</a></li><li><a href="global.html#Ctrlbtn">Ctrlbtn</a></li><li><a href="global.html#del">del</a></li><li><a href="global.html#EditForm">EditForm</a></li><li><a href="global.html#get">get</a></li><li><a href="global.html#get_all">get_all</a></li><li><a href="global.html#get_pos">get_pos</a></li><li><a href="global.html#getQueryString">getQueryString</a></li><li><a href="global.html#Imarker">Imarker</a></li><li><a href="global.html#Jsonp">Jsonp</a></li><li><a href="global.html#Loading">Loading</a></li><li><a href="global.html#log">log</a></li><li><a href="global.html#Popup">Popup</a></li><li><a href="global.html#set_pos">set_pos</a></li><li><a href="global.html#wechat">wechat</a></li>
				</ul>
			</li>
			
		</ul>
        
            <div class="col-sm-3 col-md-3">
                <form class="navbar-form" role="search">
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
                        <div class="input-group-btn">
                            <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
                        </div>
                    </div>
                </form>
            </div>
        
	</div>

</div>
</div>


<div class="container" id="toc-content">
<div class="row">

	
	<div class="col-md-8">
	
		<div id="main">
			

	
	











	
	





    <section class="readme-section">
        <article><p>#leNong-leading end</p>
<p>##架构说明</p>
<ul>
<li>AngularJs整理交互逻辑<ul>
<li>route-ui 整理组件逻辑 </li>
</ul>
</li>
<li>原生js组件打造特殊效果 </li>
<li>json格式传输数据</li>
</ul>
<p>#app-&gt;wechat has updataed</p>
<p>#农夫模块</p>
<p>##种植&gt;消息面板</p>
<p>###plant_msg
    {
        'Cstatus': 'm',
        'Fstatus': true,
        'Amun': '12',
        'time': '2016-7-1 16:53'
    }
Cstatus | Fstatus | Amun | time
----|------|----|----
用户发布的操作状态 | 后台操作行为的完成状态  | 土地编号 | 用户发布操作的时间
char w/s/g/i/p | bool  | char | date
分别为浇水，松土，除草，除虫，种植 |   |  | </p>
<p>##/GET 用户发布的操作状态信息</p>
<p>##/POST 恢复到对应土地的对应正常状态(完成状态) | 或者可以恢复到未完成状态（防止误点）</p>
<p>##种植&gt;土地面板</p>
<p>###plant_list
    {
    Pcode: '1',
    categroy: [{
        name: '蘑菇',
        statu: [{
            statu_name: 'mature',
            mature: false
        }, {
            statu_name: 'withered',
            withered: false
        }, {
            statu_name: 'collected',
            withered: false
        }]
    }, {
        name: '草莓',
        statu: [{
            statu_name: 'mature',
            mature: false
        }, {
            statu_name: 'withered',
            withered: false
        }, {
            statu_name: 'collected',
            withered: false
        }]
    }, {
        name: '地瓜',
        statu: [{
            statu_name: 'mature',
            mature: false
        }, {
            statu_name: 'withered',
            withered: false
        }, {
            statu_name: 'collected',
            withered: false
        }]
    }],
    ctrl_time: {
        a_w: '2016-6-23 6:20',
        a_m: '2016-6-21 6:20',
        a_g: '2016-6-22 6:20',
        a_i: '2016-6-22 6:20'
    },
    plant_time: '2016-6-17',
    mature_time: '2016-7-17'
    }
Pcode | categroy | ctrl_time | plant_time | mature_time
----|------|----|---|---
土地编号 | 作物  | 上次操作时间 | 种植时间 | 成熟时间
  |  生长状态 mature：成熟状态 |   |  | a_w/a_m/a_g/a_i
  |  withered：枯萎状态 collected：采摘状态 |   |  | 提醒浇水/施肥/除草/除虫</p>
<p>##/GET 以上信息</p>
<p>##/POST 上传土地图片</p>
<p>##/POST 各种提醒状态</p>
<p>##/POST 改变作物生长状态</p>
<p>#农场管理员模块</p>
<p>##农场&gt;发布土地&gt;土地列表</p>
<p>###plant_list
    {
        Pnum: '#qwe123',
        Pphoto: './images/head_120.png',
        Pprice: '20',   //¥
        Parea: '10' //㎡
    }</p>
<table>
<thead>
<tr>
<th>Pnum</th>
<th>Pphoto</th>
<th>Pprice</th>
<th>Parea </th>
</tr>
</thead>
<tbody>
<tr>
<td>编号</td>
<td>图片</td>
<td>价格</td>
<td>面积</td>
</tr>
<tr>
<td>char</td>
<td>file&lt;512kb</td>
<td>int</td>
<td>int</td>
</tr>
</tbody>
</table>
<p>##/GET 以上信息列表</p>
<p>##/DELETE 删除该土地  &gt;dalete时会有多组数据一起DELETE的情况</p>
<p>##/POST 增加土地  &gt;post时会有多组数据一起上传的情况   ex:[{d1},{d2},{d3}]</p>
<p>##/UPDATE 更新土地信息</p>
<hr>
<p>##农场&gt;发布种子</p>
<p>##农场&gt;发布种子方案 &gt;种子列表
    {
        sName:'冬瓜',
        sPrice:'10', //¥
        sGtime:'30' //天
    }</p>
<table>
<thead>
<tr>
<th>sName</th>
<th>sPrice</th>
<th>sGtime  </th>
</tr>
</thead>
<tbody>
<tr>
<td>种子名称</td>
<td>种子价格</td>
<td>成长时间 </td>
</tr>
<tr>
<td>char</td>
<td>file&lt;512kb</td>
<td>int </td>
</tr>
</tbody>
</table>
<p>##/GET 以上信息列表</p>
<p>##/DELETE 删除该种子 &gt;dalete时会有多组数据一起DELETE的情况</p>
<p>##/POST 增加种子 &gt;post时会有多组数据一起上传的情况   ex:[{d1},{d2},{d3}]</p>
<p>##/UPDATE 更新种子信息</p>
<hr>
<p>##农场&gt;发布种子方案&gt; 种子方案</p>
<p>###/编辑状态时
    {
        cNum: 1,
        cContent: {
            p1: ['冬瓜', '西瓜', '南瓜', '北瓜'],
            p2: ['冬瓜', '西瓜', '南瓜', '北瓜'],
            p3: ['冬瓜', '西瓜', '南瓜', '北瓜']
        },
        isPublish: true
    }</p>
<table>
<thead>
<tr>
<th>cNum</th>
<th>cContent</th>
<th>isPublish  </th>
</tr>
</thead>
<tbody>
<tr>
<td>方案编号</td>
<td>方案内容</td>
<td>是否发布 </td>
</tr>
<tr>
<td>char</td>
<td>可选的作物</td>
<td>bool</td>
</tr>
</tbody>
</table>
<p>###/GET 以上信息列表</p>
<p>###/POST的数据
    {
        cNum: 1,
        cContent: {
            p1: '冬瓜',
            p2: '南瓜',
            p3: '西瓜'
        },
        isPublish: true
    }</p>
<p>###DELETE 删除方案</p>
<hr>
<p>###sever_pck
    {
        Scon: 10,
        Sprice: 50,
        Sstatu: true
    }</p>
<table>
<thead>
<tr>
<th>Scon</th>
<th>Sprice</th>
<th>Sstatu</th>
</tr>
</thead>
<tbody>
<tr>
<td>次数</td>
<td>价格</td>
<td>状态</td>
</tr>
<tr>
<td>int</td>
<td>int</td>
<td>bool</td>
</tr>
</tbody>
</table>
<hr>
<p>###msg_tem
    {
        title: '确认信息',
        content: '确认完成当前操作',
        concel: {
            content: '取消',
            display: true
        },
        ok: {
            content: '确认',
            display: true
        }
    }</p>
<hr></article>
    </section>







		</div>
	</div>

	<div class="clearfix"></div>

	
		<div class="col-md-3">
			<div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
		</div>
	

</div>
</div>


    <div class="modal fade" id="searchResults">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">Search results</h4>
          </div>
          <div class="modal-body"></div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div>


<footer>


<span class="jsdoc-message">
	Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a>
	
		on October 10th 2016, 3:22:02 pm
	
	using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
</footer>

<script src="scripts/docstrap.lib.js"></script>
<script src="scripts/toc.js"></script>

    <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>


<script>
$( function () {
	$( "[id*='$']" ).each( function () {
		var $this = $( this );

		$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
	} );

	$( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
		var $this = $( this );

		var example = $this.find( "code" );
		exampleText = example.html();
		var lang = /{@lang (.*?)}/.exec( exampleText );
		if ( lang && lang[1] ) {
			exampleText = exampleText.replace( lang[0], "" );
			example.html( exampleText );
			lang = lang[1];
		} else {
			var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
			lang = langClassMatch ? langClassMatch[1] : "javascript";
		}

		if ( lang ) {

			$this
			.addClass( "sunlight-highlight-" + lang )
			.addClass( "linenums" )
			.html( example.html() );

		}
	} );

	Sunlight.highlightAll( {
		lineNumbers : true,
		showMenu : true,
		enableDoclinks : true
	} );

	$.catchAnchorLinks( {
        navbarOffset: 10
	} );
	$( "#toc" ).toc( {
		anchorName  : function ( i, heading, prefix ) {
			return $( heading ).attr( "id" ) || ( prefix + i );
		},
		selectors   : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
		showAndHide : false,
		smoothScrolling: true
	} );

	$( "#main span[id^='toc']" ).addClass( "toc-shim" );
	$( '.dropdown-toggle' ).dropdown();

    $( "table" ).each( function () {
      var $this = $( this );
      $this.addClass('table');
    } );

} );
</script>



<!--Navigation and Symbol Display-->


<!--Google Analytics-->



    <script type="text/javascript">
        $(document).ready(function() {
            SearcherDisplay.init();
        });
    </script>


</body>
</html>